//
//  ZBResultCellViewModel.m
//  BaseRACDemo
//
//  Created by Angel_Yan on 2018/3/28.
//  Copyright © 2018年 庄波. All rights reserved.
//

#import "ZBResultCellViewModel.h"

@interface ZBResultCellViewModel ()

@property (nonatomic, strong) ZBResultItemModel *itemModel;
/// cellHeight
@property (nonatomic, assign) CGFloat cellHeight;

@property (nonatomic , copy) NSString *strTime;
@property (nonatomic , copy) NSString *strPhone;
@property (nonatomic , copy) NSString *strType;
@property (nonatomic , copy) UIColor *strTypeColor;


@end

@implementation ZBResultCellViewModel

- (instancetype)initWithItemModel:(ZBResultItemModel *)itemModel
{
    self = [super init];
    if (self) {
        self.cellHeight = 60;
        self.itemModel = itemModel;
        self.strTime = itemModel.time;
        self.strPhone = itemModel.phone;
        self.strType = itemModel.callStatusName;
        self.strTypeColor = [itemModel.callStatusName isEqualToString:@"接通"] ? [UIColor grayColor] : [UIColor redColor];
        
    }
    return self;
}
@end
